package com.gccloud.design.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 流程定制实体
 *
 * @author guo.wang
 * 2021/4/9
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "流程定制")
@TableName("bwp_business_process")
public class BwpBusinessProcessEntity implements Serializable {

    /**
     * 默认serialVersionUID
     */
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "业务类型")
    @TableField("BWP_FLOW_ID")
    private String bwpFlowId;

    @ApiModelProperty(value = "业务类型")
    @TableField("BUSINESS_TYPE_ID")
    private Integer businessTypeId;

    @ApiModelProperty(value = "描述")
    @TableField("MEMO")
    private String memo;

    @ApiModelProperty(value = "流程名称")
    @TableField("FLOW_NAME")
    private String flowName;

    @ApiModelProperty(value = "流程类型")
    @TableField("TYPE")
    private String type;

    @ApiModelProperty(value = "业务模板ID")
    @TableField("FORM_ID")
    private Integer fromId;

    @ApiModelProperty(value = "删除标志")
    @TableField("DEL_FLAG")
    private Integer delFlag;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private String createTime;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATE_USER")
    private String createUser;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATE_TIME")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private String updateTime;

    @ApiModelProperty(value = "更新人")
    @TableField("UPDATE_USER")
    private String updateUser;

    @ApiModelProperty(value = "分库字段")
    @TableField("SHARDING_ID")
    private Integer shardingId;
}
